﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autofac.Core;
using ESSManageService.Common;
using ESSManageService.Common.Helper;
using ESSManageService.IServices.IBusinessServices;
using ESSManageService.Services.BusinessServices;
using Microsoft.Extensions.DependencyInjection;

namespace ESSManageService.Extensions
{
    public static class ClientWebSocketServiceSetup
    {
        public static void AddClientWebSocketServiceSetup(this IServiceCollection services)
        {
            if (services == null) throw new ArgumentNullException(nameof(services));

            services.AddSingleton<ClientWebSocketService>();
        }
    }
}
